package com.gome.feitian.atp.rest.api.impl;


import com.gome.feitian.atp.rest.api.AtpCacheApi;
import com.gome.feitian.atp.rest.dto.ResultDto;

/**
 * AtpCacheApiImpl接口实现类
 *
 * @author ypf
 */
public class AtpCacheApiImpl extends BaseApiImpl implements AtpCacheApi {

    public ResultDto buildAtpDetailForQty(int begin, int end) {
        String url = getUrl() + "/api/cache/sync/buildAtpDetailForQty/{0}/{1}".replace("{0}", String.valueOf(begin)).replace("{1}", String.valueOf(end));
        logger.info(url);
        return defaultGet(url, null, String.class);
    }

    public ResultDto buildDaMasLoc(int begin, int end) {
        String url = getUrl() + "/api/cache/sync/buildDaMasLoc/{0}/{1}".replace("{0}", String.valueOf(begin)).replace("{1}", String.valueOf(end));
        logger.info(url);
        return defaultGet(url, null, String.class);
    }

}
